package com.jiai.cloud.sys.service.impl;


import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jiai.cloud.base.page.CustomPage;
import com.jiai.cloud.entity.TOrder;

import com.jiai.cloud.sys.mapper.TOrderMapper;
import com.jiai.cloud.sys.service.ITOrderService;
import org.apache.commons.collections.map.HashedMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author 佳爱科技
 * @since 2017-05-24
 */
@Service
public class TOrderServiceImpl extends ServiceImpl<TOrderMapper,TOrder> implements ITOrderService {

    @Override
    public CustomPage selectMember(Page page, Wrapper wrapper) {
         page.setRecords(baseMapper.selectMember(page,wrapper));
        return new CustomPage(page);
    }



    @Autowired
    private TOrderMapper tOrderMapper;

    @Override
    public List<Map<String,Object>> countNumber() {
        return tOrderMapper.countNumber();
    }

}
